* {
  margin: 0;
  padding: 0;
}

#div1 {
  height: 50px;
  width: 50px;
  background-color: aqua;
  animation: div1 3s infinite;
}

#div1:hover{
  animation-play-state: paused;
}

@keyframes div1 {
  0%{
    transform: translate(0);
  }
  100%{
    background-color: aquamarine;
    transform: translate(200px);
  }
}

.myball {
  position: relative;
  margin-left: 5px;
}

.ball {
  position: absolute;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  background-color: black;
  transform-origin: right bottom;
}

.b1 {
  animation: rotate 3s infinite linear;
}

.b2 {
  animation: rotate 3s infinite -1s linear;
}

.b3 {
  animation: rotate 3s infinite -2s linear;
}

@keyframes rotate {
  0% {
    transform: rotateZ(0deg);
  }

  100% {
    transform: rotateZ(360deg);
  }
}

.loading {
  height: 50px;
  width: 100px;
  margin-top: 100px;
  margin-left: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.l {
  height: 100%;
  width: 14px;
  float: left;
  animation: jump 1.06s infinite linear;
}

.l1 {
  height: 14px;
  border-radius: 50%;
  background-color: aqua;
  animation-delay: 0.13s;
}

.l2 {
  height: 14px;
  border-radius: 50%;
  background-color: aqua;
  animation-delay: 0.26s;
}

.l3 {
  height: 14px;
  border-radius: 50%;
  background-color: aqua;
  animation-delay: 0.39s;
}

.l4 {
  height: 14px;
  border-radius: 50%;
  background-color: aqua;
  animation-delay: 0.52s;
}

.l5 {
  height: 14px;
  border-radius: 50%;
  background-color: aqua;
  animation-delay: 0.65s;
}

@keyframes jump {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-25px);
  }

  100% {
    transform: translateY(0);
  }
}

.loading2 {
  height: 50px;
  width: 100px;
  margin-top: 100px;
  margin-left: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  .l {
    height: 100%;
    width: 14px;
    float: left;
    animation: show 1.04s infinite ease;
    background-color: lightgreen;
  }

  .l1 {
    height: 14px;
    border-radius: 50%;
    animation-delay: 0.13s;
  }

  .l2 {
    height: 14px;
    border-radius: 50%;
    animation-delay: 0.26s;
  }

  .l3 {
    height: 14px;
    border-radius: 50%;
    animation-delay: 0.39s;
  }

  .l4 {
    height: 14px;
    border-radius: 50%;
    animation-delay: 0.52s;
  }

  .l5 {
    height: 14px;
    border-radius: 50%;
    animation-delay: 0.65s;
  }

  @keyframes show {
    0% {
      opacity: 1;
      transform: scale(1.3);
    }

    100% {
      opacity: 0.2;
      transform: scale(.3);
    }
  }
}

.g-father {
  margin: 10px 0 0 10px;
  width: 400px;
  height: 100px;
  border: 1px solid #000;
}
.g-box {
  width: 100px;
  height: 100px;
  background: #333;
  animation: move 4s linear infinite;
  transform: translate(0, 0);
}

@keyframes move {
  0% {
      transform: translate(100px, 0);
  }
  100% {
      transform: translate(300px, 0);
  }
}
